﻿@model LoginViewModel
@{
    Layout = "_LayoutLogin";
}

@section Scripts {
    <script type="text/javascript">
        $(document).ready(function () {
            $("#UserName").attr("placeholder", "请输入账号");
            $("#Password").attr("placeholder", "请输入密码");
            $("#VerifyCode").attr("placeholder", " 请验证码");
        });
        function refresh() {
            var str = "/Login/LoginImg/" + Math.round(Math.random() * 10);
            $("img").attr('src', str);
        }
    </script>
}

<div class="row">
    <div class="col-md-6">
        <h2 class="font-bold">欢迎来到&nbsp;&nbsp;测试场景</h2>
        <br />
        <h3>作者：罗洪业</h3>
        <br />
        <h3>Wap交互重新，制作组件包</h3>
        <div class="vertical-timeline-block">
            <div class="vertical-timeline-icon gray-bg">
                <i class="fa fa-key"></i>
            </div>
            <div class="vertical-timeline-content">
                <p>
                    Admin管理后台
                </p>
                <span class="vertical-date text-muted"> <span class="label label-success">admin</span> 密码 <span class="label label-success">123123</span> </span>
            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="ibox-content">
            @using (Html.BeginForm("Login", "Login", FormMethod.Post, new { role = "form", @class = "m-t", ReturnUrl = ViewBag.ReturnUrl }))
            {
                @Html.AntiForgeryToken()
                <p>@Html.ValidationSummary(true)</p>
                <div class="form-group row">
                    <label class="col-lg-3 col-form-label">账 号：</label>
                    <div class="col-lg-9">
                        @Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
                        <span class="form-text m-b-none">@Html.ValidationMessageFor(m => m.UserName)</span>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-lg-3 col-form-label">密 码：</label>
                    <div class="col-lg-9">
                        @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
                        <span class="form-text m-b-none">@Html.ValidationMessageFor(m => m.Password)</span>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-lg-3 col-form-label">验证码：</label>
                    <div class="col-lg-9">
                        @Html.TextBoxFor(m => m.VerifyCode, new { @style = "width:50%;float:left;margin-right:8px;" })
                        <img width="76" src="/Login/LoginImg/1" onclick="refresh(); return false;" />
                    </div>
                </div>
                <div class="form-group row">
                    <div class="col-lg-offset-2 col-lg-8">
                        <input type="submit" class="btn btn-primary block full-width m-b" value="登 录" />
                    </div>
                </div>
            }
        </div>
    </div>
</div>
